package tgc.edu.yzy.service;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import tgc.edu.yzy.custom.CommonService;
import tgc.edu.yzy.entity.Test02;
import tgc.edu.yzy.repository.Test02Repository;

@Service
public class Test02Service extends CommonService<Test02, Integer>{
	@Autowired
	private Test02Repository textdao;

	public List<Test02> findByParentId(Integer id) {
		return textdao.findByParentId(id);
	}
	@Transactional
	public List<Test02> findLike(String q) {
		System.out.println("服务层service:"+q);
		return textdao.findLike(q);
	}
}
